<?php declare(strict_types=1);
/**
 * @author      xianganyall <xianganyall@gmail.com>
 * @copyright   2023-2025 owner
 **/

namespace Srv\Conf\ConfModel;

use Srv\Libs\ConfModel\ConfAbstract;

final class JVerifyConf extends ConfAbstract
{
    public const PREFIX                         = 'JVERIFY.';           // 配置前缀[必定点结尾]
    protected string $appKey                    = '';                   // 极光应用Key
    protected string $secret                    = '';                   // 极光应用密钥
    protected string $publicPemFile             = '';                   // 极光公钥文件路径
    protected string $privatePemFile            = '';                   // 极光私钥文件路径

    /**
     * @param array $confData
     */
    public function __construct(array $confData)
    {
        $this->init($confData);
    }

    /**
     * @return string
     */
    public function getAppKey(): string
    {
        return $this->appKey;
    }

    /**
     * @return string
     */
    public function getSecret(): string
    {
        return $this->secret;
    }

    /**
     * @return string
     */
    public function getPublicPemFile(): string
    {
        return $this->publicPemFile;
    }

    /**
     * @return string
     */
    public function getPrivatePemFile(): string
    {
        return $this->privatePemFile;
    }
}